package com.vcredit.creditcat.dto.speedloan;

import java.io.Serializable;

/**
 * 校验用户申请产品资格的结果实体
 * @author zhaoqi01
 *
 */
public class CheckCustResultDto implements Serializable{
	private static final long serialVersionUID = -1315899790991849010L;

	private Integer checkResult; // 1：校验通过  2：校验不通过
	
	private String resultDesc; // 结果信息
	
	public CheckCustResultDto() {
		super();
	}
	
	public CheckCustResultDto(Integer checkResult, String resultDesc) {
		super();
		this.checkResult = checkResult;
		this.resultDesc = resultDesc;
	}
	
	public static CheckCustResultDto success() {
		return new CheckCustResultDto(1, null);
	}
	
	public static CheckCustResultDto fail(String msg) {
		return new CheckCustResultDto(2, msg);
	}
	
	public Integer getCheckResult() {
		return checkResult;
	}

	public void setCheckResult(Integer checkResult) {
		this.checkResult = checkResult;
	}

	public String getResultDesc() {
		return resultDesc;
	}

	public void setResultDesc(String resultDesc) {
		this.resultDesc = resultDesc;
	}

}
